package com.example.kotlindemo.activity

import android.os.Bundle
import android.webkit.WebView
import androidx.appcompat.app.AppCompatActivity
import com.example.kotlindemo.R

class WebViewActivity :AppCompatActivity(){
    private var url:String ?=null
    private var webView:WebView?= null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.layout_webview)
        url = "https://h5store.powervision.me/appstore/index.html?userId=&language=zh&countryCode=CN&deviceType=android&systemVersion=9&appVersion=1.1.1&token=&ip=114.241.166.87"
        initView()
    }

    private fun initView() {
        webView = findViewById(R.id.webView)
        webView?.loadUrl(url!!)
    }
}